//导入 mongoose
const mongoose = require('mongoose');

// 创建文档结构
const userSchema = new mongoose.Schema({
    username: String,
    password: String
});

//创建模型对象
const userModel = mongoose.model('user', userSchema);

//暴露
module.exports = userModel;